package com.liran.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author whh
 * @since 2022-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("consume_info")
@ApiModel(value = "ConsumeInfoEntity对象", description = "")
public class ConsumeInfoEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "消费信息")
    private String message;

    @ApiModelProperty(value = "总金额")
    @TableField("total_amount")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "优惠金额")
    @TableField("discount_amount")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "实付金额")
    @TableField("final_amount")
    private BigDecimal finalAmount;

    @ApiModelProperty(value = "是否是会员")
    @TableField("is_vip")
    private Integer isVip;

    @ApiModelProperty(value = "会员id")
    @TableField("vip_id")
    private Long vipId;

    @ApiModelProperty(value = "陌生人姓名")
    private String name;

    @ApiModelProperty(value = "创建时间")
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "消费时间")
    @TableField("consume_time")
    private LocalDateTime consumeTime;

    @ApiModelProperty(value = "备注")
    private String remark;
}
